package main

import (
	"fmt"

	"./hashTableArray"
)

func main2() {
	//fmt.Println(hashTableArray.Deleted)

	//fmt.Println(hashTableArray.MintableSize)

	//fmt.Println(hashTableArray.Empty)

	fmt.Println(hashTableArray.MySHA256("abcd1"))

	fmt.Println(hashTableArray.MySHA256("abcd2"))

	fmt.Println(hashTableArray.MySHA256("abcd3"))

}

func main() {
	mytable, _ := hashTableArray.NewHashTable(100, hashTableArray.MySHA)

	mytable.Insert("677tereree")
	mytable.Insert("abcd2")
	mytable.Insert("abcd3")

	pos := mytable.Find("677tereree")

	fmt.Println(pos)

	fmt.Println(mytable.GetValue(pos))

	pos1 := mytable.Find("abcd3")

	fmt.Println(pos1)

	fmt.Println(mytable.GetValue(pos1))

}
